Remove (shpopen) warning on FreeBSD.
authoroliskoli <oliskoli@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 24 Nov 2006 21:55:52 +0000 (21:55 +0000)
committeroliskoli <oliskoli@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 24 Nov 2006 21:55:52 +0000 (21:55 +0000)
gpsbabel/shapelib/shpopen.c

index b6ffdc866d58b02711654e5ce7f568c3de5c17a2..ffb38a29b2e13c8366e5c3e8e692fc04d38f279a 100644 (file)
@@ -1,5 +1,5 @@
 /******************************************************************************
- * $Id: shpopen.c,v 1.4 2006-07-13 03:27:54 robertl Exp $
+ * $Id: shpopen.c,v 1.5 2006-11-24 21:55:52 oliskoli Exp $
  *
  * Project:  Shapelib
  * Purpose:  Implementation of core Shapefile read/write functions.
  ******************************************************************************
  *
  * $Log: not supported by cvs2svn $
+ * Revision 1.4  2006/07/13 03:27:54  robertl
+ * Andy Armstrong turns on -Wall for GCC builds and kills about a sequillion warnings.  Most of them aren't "real", but it's still a good thing to clean up.
+ * (I hope I don't regret this before 1.3.1...)
+ *
  * Revision 1.3  2006/05/07 02:14:35  robertl
  * Make shapefile and all palm pdb formats deselectable at build time.
  *
  */
 
 /*static char rcsid[] = 
-  "$Id: shpopen.c,v 1.4 2006-07-13 03:27:54 robertl Exp $";*/
+  "$Id: shpopen.c,v 1.5 2006-11-24 21:55:52 oliskoli Exp $";*/
 
 #include "shapefil.h"
 #include "config.h"
@@ -929,6 +933,7 @@ SHPWriteObject(SHPHandle psSHP, int nShapeId, SHPObject * psObject )
     uchar      *pabyRec;
     int32      i32;
 
+    nRecordSize = 0;
     psSHP->bUpdated = TRUE;
 
 /* -------------------------------------------------------------------- */